const { DataTypes } = require('sequelize');
const sequelize = require('../config/database')

const ProvinceModel = sequelize.define('Province', {
  province_id: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    allowNull: false,
    autoIncrement: true
  },
  name: {
    type: DataTypes.STRING,
    allowNull: false
  }
}, {
  freezeTableName: true,
  tableName: 'province',
  timestamps: false
})

module.exports = ProvinceModel